etags: In Prolog functions, don't assume int fits in size_t.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 16:40:05 +0000 (09:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 16:40:05 +0000 (09:40 -0700)
commitb376f06d0fb408e1f0cc9af69410924c34231757
tree10c4cf2e2dd41e407acc6ae44e1cb1d391ff23a3
parent37494f122f7f3779a3e373be70eeb43c2186f1ea
etags: In Prolog functions, don't assume int fits in size_t.

This avoids a warning with gcc -Wstrict-overflow.
* etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
not int, to store sizes.
(prolog_atom): Return 0, not -1, on error.  All callers changed.
lib-src/ChangeLog
lib-src/etags.c